package day11.HashSet;

import heima.FangXing.day10.domain.Student;

import java.util.HashSet;

public class HashSet01 {
/*
HashSet集合存储自定义对象
 */
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        hs.add(new Student("张三",23));
        hs.add(new Student("李四",24));
        hs.add(new Student("王五",25));
        hs.add(new Student("王五",25));
        System.out.println(hs);
    }
}
